# def varfun():
#     var = 0
#     print("var = %d" % var)
#     var += 1
#
#
# if __name__ == "__main__":
#     for i in range(3):
#         varfun()
# class Static:
#     StaticVar = 5
#     def varfun(self):
#         self.StaticVar += 1
#         print(self.StaticVar)
#
# print(Static.StaticVar)
# a = Static()
# for i in range(3):
#     a.varfun()

# num = 2
# # def autofunc():
# #     num = 1
# #     print("internal block num = %d" % num)
# #     num += 1
# # for i in range(3):
# #     print("The num = %d" % num)
# #     num += 1
# #     autofunc()

# class Num:
#     nNum = 1
#     def inc(self):
#         self.nNum += 1
#         print("nNum = %d" % self.nNum)
# if __name__ == "__main__":
#     nNum = 2
#     inst = Num()
#     for i in range(3):
#         nNum += 1
#         print("The num = %d" % nNum)
#         inst.inc()

# import numpy as np
# x = [[12,7,3],[4,5,6],[7,8,9]]
# y = [[5,8,1],[6,7,3],[4,5,9]]
# r = np.array(x) + np.array(y)
# print(r)

# tmp = 0
# for i in range(1,101):
#     tmp += i
# print(tmp)

# TRUE = 1
# FALSE = 0
# def AQ(x):
#     return x * x
# print("如果输入的数字小于50，程序将停止运行。")
# again = 1
# while again:
#     num = int(input("请输入一个数字："))
#     print("运算结果为： %d" % (AQ(num)))
#     if AQ(num) >= 50:
#         again = TRUE
#     else:
#         again = FALSE

# def exchange(a,b):
#     a,b =b,a
#     return (a,b)
# if __name__  == "__main__":
#     x = 20
#     y = 10
#     print("x = %d, y = %d" % (x,y))
#     x,y = exchange(x,y)
#     print("x = %d, y = %d" % (x,y))

# if __name__ == "__main__":
#     i = int(input("请输第一个值："))
#     j = int(input("请输入第二个值："))
#     if i >j:
#         print("%d 大于 %d" % (i, j))
#     elif i == j:
#         print("%d 等于 %d" % (i, j))
#     elif i < j:
#         print("%d 小于 %d" % (i, j))
#     else:
#         print("未知")

# MAXMUM = lambda x,y : (x > y) * x + (x < y) * y
# MINMUM = lambda x,y : (x > y) * y + (x < y) * x
# if __name__ == "__main__":
#     a = 10
#     b = 20
#     print(MAXMUM(a,b))
#     print(MINMUM(a,b))

# import random
# print(random.uniform(10,20))

# if __name__ == "__main__":
#     a = 0o77
#     b = a & 3
#     print("a & b = %d" % b)
#     b &= 7
#     print("a & b = %d" % b)

# if __name__ == '__main__':
#     a = 0o77
#     b = a | 3
#     print('a | b is %d' % b)
#     b |= 7
#     print('a | b is %d' % b)

# if __name__ == '__main__':
#     a = 0o77
#     b = a ^ 3
#     print('The a ^ 3 = %d' % b)
#     b ^= 7
#     print('The a ^ b = %d' % b)

# if __name__ == "__main__":
#     a = int(input("输入一个数："))
#     b = a >> 4
#     c = ~(~0 << 4)
#     d = b & c
#     print("%o\t%o"%(a,b))

# if __name__ == '__main__':
#     a = 234
#     b = ~a
#     print('The a\'s 1 complement is %d' % b)
#     a = ~a
#     print ('The a\'s 2 complement is %d' % a)

# if __name__ == "__main__":
#     import tkinter as tk
#     canvas = tk.Canvas(width = 800,height = 600,bg = "yellow")
#     canvas.pack()
#     k = 1
#     j = 1
#     for i in range(0,26):
#         canvas.create_oval(310 - k, 250 - k, 310 + k, 250 +k ,width = 1)
#         k += j
#         j += 0.3
#
#     tk.mainloop()
from tkinter import Canvas, YES, BOTH, mainloop


# if __name__ == '__main__':
#
#
#     canvas = Canvas(width=300, height=300, bg='green')
#     canvas.pack(fill=BOTH)
#     x0 = 263
#     y0 = 263
#     y1 = 275
#     x1 = 275
#     for i in range(19):
#         canvas.create_line(x0, y0, x0, y1, width=1, fill='red')
#         x0 = x0 - 5
#         y0 = y0 - 5
#         x1 = x1 + 5
#         y1 = y1 + 5
#
#     x0 = 263
#     y1 = 275
#     y0 = 263
#     # for i in range(21):
#     #     canvas.create_line(x0, y0, x0, y1, fill='red')
#     #     x0 += 5
#     #     y0 += 5
#     #     y1 += 5
#
#     mainloop()

# if __name__ == '__main__':
#     from tkinter import *
#
#     root = Tk()
#     # root.title('Canvas')
#     canvas = Canvas(root, width=400, height=400, bg='yellow')
#     x0 = 263
#     y0 = 263
#     y1 = 275
#     x1 = 275
#     for i in range(19):
#         canvas.create_rectangle(x0, y0, x1, y1)
#         x0 -= 5
#         y0 -= 5
#         x1 += 5
#         y1 += 5
#
#     canvas.pack()
#     root.mainloop()

# if __name__ == '__main__':
#     from tkinter import *
#
#     canvas = Canvas(width=300, height=300, bg='green')
#     canvas.pack(expand=YES, fill=BOTH)
#     x0 = 150
#     y0 = 100
#     canvas.create_oval(x0 - 10, y0 - 10, x0 + 10, y0 + 10)
#     canvas.create_oval(x0 - 20, y0 - 20, x0 + 20, y0 + 20)
#     canvas.create_oval(x0 - 50, y0 - 50, x0 + 50, y0 + 50)
#     import math
#
#     B = 0.809
#     for i in range(16):
#         a = 2 * math.pi / 16 * i
#         x = math.ceil(x0 + 48 * math.cos(a))
#         y = math.ceil(y0 + 48 * math.sin(a) * B)
#         canvas.create_line(x0, y0, x, y, fill='red')
#     canvas.create_oval(x0 - 60, y0 - 60, x0 + 60, y0 + 60)
#
#     for k in range(501):
#         for i in range(17):
#             a = (2 * math.pi / 16) * i + (2 * math.pi / 180) * k
#             x = math.ceil(x0 + 48 * math.cos(a))
#             y = math.ceil(y0 + 48 + math.sin(a) * B)
#             canvas.create_line(x0, y0, x, y, fill='red')
#         for j in range(51):
#             a = (2 * math.pi / 16) * i + (2 * math.pi / 180) * k - 1
#             x = math.ceil(x0 + 48 * math.cos(a))
#             y = math.ceil(y0 + 48 * math.sin(a) * B)
#             canvas.create_line(x0, y0, x, y, fill='red')
#     mainloop()

# sStr1 = "strlen"
# print(len(sStr1))

# if __name__ == "__main__":
#     a = []
#     for i in range(10):
#         a.append([])
#         for j in range(10):
#             a[i].append(0)
#     for i in range(10):
#         a[i][0] = 1
#         a[i][i] = 1
#     for i in range(2,10):
#         for j in range(1,i):
#             a[i][j] = a[i - 1][j - 1]+a[i - 1][j]
#     from sys import stdout
#     for i in range(10):
#         for j in range(i + 1):
#             stdout.write(str(a[i][j]))
#             stdout.write(" ")
#         print()

# sStr1 = "abcdefg"
# sStr2 = "cde"
# print(sStr1.find("g"))

# if __name__ == '__main__':
#     from tkinter import *
#
#     x = 360
#     y = 160
#     top = y - 30
#     bottom = y - 30
#
#     canvas = Canvas(width=400, height=600, bg='white')
#     for i in range(20):
#         canvas.create_oval(250 - top, 250 - bottom, 250 + top, 250 + bottom)
#         top -= 5
#         bottom += 5
#     canvas.pack()
#     mainloop()

# if __name__ == '__main__':
#     from tkinter import *
#     canvas = Canvas(width = 400,height = 600,bg = 'white')
#     left = 20
#     right = 50
#     top = 50
#     num = 15
#     for i in range(num):
#         canvas.create_oval(250 - right,250 - left,250 + right,250 + left)
#         canvas.create_oval(250 - 20,250 - top,250 + 20,250 + top)
#         canvas.create_rectangle(20 - 2 * i,20 - 2 * i,10 * (i + 2),10 * ( i + 2))
#         right += 5
#         left += 5
#         top += 10
#
#     canvas.pack()
#     mainloop()

# import math
# from tkinter import *
#
#
# class PTS:
#     def __init__(self):
#         self.x = 0
#         self.y = 0
#
#
# points = []
#
#
# def LineToDemo():
#
#     screenx = 400
#     screeny = 400
#     canvas = Canvas(width=screenx, height=screeny, bg="white")
#
#     AspectRatio = 0.85
#     MAXPTS = 15
#     h = screenx
#     w = screeny
#     xcenter = w / 2
#     ycenter = h / 2
#     radius = (h - 30) / (AspectRatio * 2) - 20
#     step = 360 / MAXPTS
#     angle = 0.0
#     for i in range(MAXPTS):
#         rads = angle * math.pi / 180.0
#         p = PTS()
#         p.x = xcenter + int(math.cos(rads) * radius)
#         p.y = ycenter - int(math.sin(rads) * radius * AspectRatio)
#         angle += step
#         points.append(p)
#     canvas.create_oval(xcenter - radius, ycenter - radius,
#                        xcenter + radius, ycenter + radius)
#     for i in range(MAXPTS):
#         for j in range(i, MAXPTS):
#             canvas.create_line(points[i].x, points[i].y,
#                                points[j].x, points[j].y)
#
#     canvas.pack()
#     mainloop()
#
#
# if __name__ == '__main__':
#     LineToDemo()

# if __name__ == '__main__':
#     n1 = int(input("n1 = :"))
#     n2 = int(input("n2 = :"))
#     n3 = int(input("n3 = :"))
#
#     def swap(p1,p2):
#         return p2,p1
#
#     if n1 > n2 :
#         n1,n2 = swap(n1,n2)
#     if n1 > n3:
#         n1,n3 = swap(n1,n3)
#     if n2 > n3:
#         n2,n3 = swap(n2,n3)
#
#     print(n1,n2,n3)

# def inp(numbers):
#     for i in range(6):
#         numbers.append(int(input("输入一个数字：")))
#
#
# p = 0
#
#
# def arr_max(array):
#     max = 0
#     for i in range(1, len(array)):
#         p = i
#         if array[p] > array[max]:
#             max = p
#     k = max
#     array[0], array[k] = array[k], array[0]
#
#
# def arr_min(array):
#     min = 0
#     for i in range(1, len(array)):
#         p = i
#         if array[p] < array[min]:
#             min = p
#     l = min
#     array[5], array[l] = array[l], array[5]
#
#
# def outp(numbers):
#     for i in range(len(numbers)):
#         print(numbers[i])
#
#
# if __name__ == '__main__':
#     array = []
#     inp(array)
#     arr_max(array)
#     arr_min(array)
#     print("计算结果为")
#     outp(array)

# if __name__ == '__main__':
#     n = int(input("n = "))
#     m = int(input("m ="))
#
#     def move(array,n,m):
#         array_end = array[n - 1]
#         for i in range(n-1,-1,-1):
#             array[i] =array[i - 1]
#         array[0] = array_end
#         m -= 1
#         if m > 0:
#             move(array,n,m)
#
#     number = []
#     for i in range(n):
#         number.append(int(input("输入一个数字：")))
#     print("原始列表：",number)
#     move(number,n,m)
#     print("移动之后：",number)

# if __name__ == '__main__':
#     max = 50
#     n = int(input("请输入总人数："))
#     num = []
#     for i in range(n):
#         num.append(i + 1)
#     print(num)
#
#     i = 0
#     k = 0
#     m = 0
#
#     while m < n-1:
#         if num[i] != 0:
#             k += 1
#         if k == 3:
#             num[i] = 0
#             k = 0
#             m += 1
#         i += 1
#         if i == n:
#             i = 0
#     i = 0
#     while num[i] == 0:
#         i += 1
#     print(num[i])

if __name__ == '__main__':
     s = input("sr:")
     print(len(s))